package com.power.ding.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.ding.model.Di_todo;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 钉钉待办发送 持久层(hibernate)
 */

public interface Di_todoDao extends JpaRepository<Di_todo, Serializable>, JpaSpecificationExecutor<Di_todo>, Repository<Di_todo, Serializable>, Di_todoDaoCustom<Di_todo, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Di_todo s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
